package com.xhwl.data.event;

import com.xhwl.common.pojo.AbstractSpace;
import com.xhwl.common.pojo.cent.sdata.Space;
import org.springframework.context.ApplicationEvent;

/**
 * @Author: luyi
 * @Description: 空间新增，修改事件
 * @Date: Create in 13:53 2021/6/17
 */
public class SpaceUpdateEvent extends ApplicationEvent {


    private AbstractSpace abstractSpace;

    private Integer projectId;

    public SpaceUpdateEvent(Object source, AbstractSpace abstractSpace, Integer projectId) {
        super(source);
        this.abstractSpace = abstractSpace;
        this.projectId = projectId;
    }

    public AbstractSpace getSpace(){
        return abstractSpace;
    }

    public Integer getProjectId(){
        return projectId;
    }
}
